//
//  MenuManager.m
//  village_ios
//
//  Created by mac on 2019/8/6.
//  Copyright © 2019 com.sw.village. All rights reserved.
//

#import "MenuManager.h"
#import "FileManager.h"
#define MENU_JSON_PATH @"menu"

@implementation MenuManager

+ (instancetype)sharedInstance
{
    static MenuManager *sharedManager;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedManager = [[MenuManager alloc] init];
    });
    
    return sharedManager;
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.menusDictM = [NSDictionary dictionary];
        self.menusDictM = [FileManager readLocalFileWithName:MENU_JSON_PATH];
        
       
    }
    return self;
}


@end
